/**
 * Copyright phonemap.com
 *
 * Licensed under the phonemap.com License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.phonemap.com/licenses/LICENSE-1.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.avatar.utils;

import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;

/**
 * The Class AvatarUtils.
 *
 * @author Administrator
 */
public final class AvatarUtils {

	/**
	 * Instantiates a new avatar utils.
	 */
	private AvatarUtils() {
		
	}
	
	/**
	 * Gets the current date.
	 *
	 * @return the current date
	 */
	public static Date getCurrentDate() {
		Calendar calendar = Calendar.getInstance();
		return calendar.getTime();
	}
	
	/**
	 * Gets the current date.
	 *
	 * @param timeZone the time zone
	 * @return the current date
	 */
	public static Date getCurrentDate(final TimeZone timeZone) {
		Calendar calendar = Calendar.getInstance();
		calendar.setTimeZone(timeZone);
		return calendar.getTime();
	}

}
